package com.cloud.api.domain.report;

import com.cloud.api.utils.ExcelUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 杨斌
 * 2025-01-2025-01-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ExcelUtils.ExcelSheet(watermark = @ExcelUtils.Watermark(type = 0)
)
@Schema(description = "能耗数据分析(月)导出数据")
public class VehiclesEnergy implements Serializable {
    @Schema(description = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelUtils.ExcelExport(name = "table.field.dt")
    private LocalDate dt;

    @Schema(description = "日总行驶里程(公里)")
    @ExcelUtils.ExcelExport(name = "table.field.runningDayMileageSum")
    private Double runningDayMileageSum;

    @Schema(description = "日总充电量(度)")
    @ExcelUtils.ExcelExport(name = "table.field.charges")
    private Double charges;

    @Schema(description = "上线车辆数(辆)")
    @ExcelUtils.ExcelExport(name = "table.field.onlineVehicle")
    private Integer onlineVehicle;


    @Schema(description = "接入车辆总数")
    @ExcelUtils.ExcelExport(name = "table.field.vehicleSaleCount")
    private Integer vehicleCount;

    @Schema(description = "日上线率(%)")
    @ExcelUtils.ExcelExport(name = "table.field.onlineVehicleRatio")
    private Double onlineVehicleRatio;

}
